package com.xbongbong.pro.user.pojo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用户和部门的封装实体
 * @author 吴峰
 * @version v1.0
 * @date 2019/5/30 16:04
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ReturnUserAndDepartmentPojo implements Serializable {
    private static final long serialVersionUID = -4678240764719125168L;

    /**
     * tb_user表的user_id或者tb_department的id
     */
    private Object id;

    /**
     * 用户名称或者部门名称
     */
    private String name;
    /**
     * 用户头像
     */
    private String avatar;

    public ReturnUserAndDepartmentPojo() {
    }

    public ReturnUserAndDepartmentPojo(Object id) {
        this.id = id;
    }

    public ReturnUserAndDepartmentPojo(Object id, String name) {
        this.id = id;
        this.name = name;
    }

    public ReturnUserAndDepartmentPojo(Object id, String name, String avatar) {
        this.id = id;
        this.name = name;
        this.avatar = avatar;
    }
}
